#include <iostream>
#include <iomanip>
using namespace std;

int main() {
	int a, b, h;
	double s;
	cin >> a >> b >> h;
	s = (a + b) * h / 2.0;
	cout << fixed << setprecision(1) << s;
	return 0;
}
